// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false


import './assets/js/iconfont.js'
import { createStore } from './store/index'
let store = createStore()

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//var url = location.href.match(/(\S*)views/)[1]+'index.php/';
 var url = "https://bkycms.com/addons/yb_wm/index.php"
import axios from 'axios';
axios.defaults.baseURL = url;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
